<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf8">
<title>Exchange Submit/Cancel Rejection</title>
<style>
body {
  background-color: #eeeeee;
  margin:3em 3em 3em 3em;
}
h1 {
  color: #358271;
  border-bottom-style: solid;
  border-bottom--width: .5em;
  border-bottom-color: #e8d696;
}

h2 {
  color: #4268f4;
  border-bottom-style: solid;
  border-bottom--width: .5em;
  border-bottom-color: #dce5ae;
}

button {
  font-size: 100%;
  padding: .5em;
}

th, td {
  border-collapse: collapse;
  border: 1px solid gray;
}

th, td {
  padding: 1em;
}

td > ul {
  padding: 1em;
}
</style>
</head>
<body>

<h1>Exchange Submit/Cancel Rejection</h1>
<h2>{{strategy_name}}</h2>

<h3>Submit Rejection</h3>
<div class="reject_table" id="submit_reject_table">
<table>
  <thead>
    <tr>
      <th>error code</th>
      <th>number</th>
    </tr>
  <thead>
  <tbody>
    {% for error_code, num in error_stats.submit.error_code.items() %}
    <tr>
      <td class="error_code"><ul>{{error_code}}</ul></td>
      <td class="num"><ul>{{num}}</ul></td>
    </tr>
    {% endfor %}
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>exchange error code</th>
      <th>number</th>
    </tr>
  <thead>
  <tbody>
    {% for exchange_error_code, num in error_stats.submit.exchange_error_code.items() %}
    <tr>
      <td class="error_code"><ul>{{exchange_error_code}}</ul></td>
      <td class="num"><ul>{{num}}</ul></td>
    </tr>
    {% endfor %}
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>exchange error message</th>
      <th>number</th>
    </tr>
  <thead>
  <tbody>
    {% for exchange_error_msg, num in error_stats.submit.exchange_error_msg.items() %}
    <tr>
      <td class="error_code"><ul>{{exchange_error_msg}}</ul></td>
      <td class="num"><ul>{{num}}</ul></td>
    </tr>
    {% endfor %}
  </tbody>
</table>

</div>

<h3>Cancel Rejection</h3>
<div class="reject_table" id="cancel_reject_table">
<table>
  <thead>
    <tr>
      <th>error code</th>
      <th>number</th>
    </tr>
  <thead>
  <tbody>
    {% for error_code, num in error_stats.cancel.error_code.items() %}
    <tr>
      <td class="error_code"><ul>{{error_code}}</ul></td>
      <td class="num"><ul>{{num}}</ul></td>
    </tr>
    {% endfor %}
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>exchange error code</th>
      <th>number</th>
    </tr>
  <thead>
  <tbody>
    {% for exchange_error_code, num in error_stats.cancel.exchange_error_code.items() %}
    <tr>
      <td class="error_code"><ul>{{exchange_error_code}}</ul></td>
      <td class="num"><ul>{{num}}</ul></td>
    </tr>
    {% endfor %}
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>exchange error message</th>
      <th>number</th>
    </tr>
  <thead>
  <tbody>
    {% for exchange_error_msg, num in error_stats.cancel.exchange_error_msg.items() %}
    <tr>
      <td class="error_code"><ul>{{exchange_error_msg}}</ul></td>
      <td class="num"><ul>{{num}}</ul></td>
    </tr>
    {% endfor %}
  </tbody>
</table>

</div>

</body>
</html>
